
const { getFirstNum } = require('../service/statistics.service')
const { success,error } = require('../utils/response')
class statisticsControllrt {
  async statistics(ctx,next) {
    const params = ctx.request.body
    try{
      const res = await getFirstNum()
      if(res){
        success(ctx,res)
      } else {
        error(ctx,null)
      }
    } catch(err)  {
      error(ctx,null)
      console.log(err)
    }
  }
}

module.exports = new statisticsControllrt()